﻿@using KRM.Core
@model System.Collections.Generic.List<KRM.Core.vLoadItemDetail>

<table class="table table-bordered table-fix krmtable tbl-selected">
        <thead>
            <tr>
                <th>Status</th>
                <th>OrderRef</th>
                <th>Customer</th>
                <th>PostCode</th>
                <th>Telephone1</th>
                <th>Telephone2</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr onclick="selectedloaditem(@item.LoadID,'@item.OrderRef','@(((LoadItemStatus)item.ItemStatusID).ToString())',@item.OrderID)">
                    <td>
                        <img src="/img/Load/@(item.StatusImage()).png" /></td>
                    <td>@item.OrderRef</td>
                    <td>@item.Customer</td>
                    <td>@item.Postcode</td>
                    <td>@item.Telephone1</td>
                    <td>@item.Telephone2</td>
                </tr>
            }
        </tbody>
    </table>